package com.quinn.myDemo.testforcode;

import com.taobao.api.ApiException;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.AlibabaAlihealthDrugKytSinglerelationRequest;
import com.taobao.api.request.AlibabaAlihealthDrugMscGetentinfoRequest;
import com.taobao.api.response.AlibabaAlihealthDrugKytSinglerelationResponse;
import com.taobao.api.response.AlibabaAlihealthDrugMscGetentinfoResponse;

/**
 * Demo0924
 * 物流企业查询货主企业信息  关联
 * @author HanQuinn
 * Date: 2024/9/24
 * Time: 16:15
 */
public class KytSynonymauths {
    public static void main(String[] args) {
        try {
            TaobaoClient client = new DefaultTaobaoClient("http://gw.api.taobao.com/router/rest", "34695618", "37ade9e9219e9dc86bf58d2e1c5282b9");
            AlibabaAlihealthDrugKytSinglerelationRequest req = new AlibabaAlihealthDrugKytSinglerelationRequest();
            req.setRefEntId("eddba00125164822823e6484c35d5d93");
            req.setCode("88997660000795793193");
            req.setDesRefEntId("9e3f2d2a8cef4b56b87a72fd2f10cb6c");
            AlibabaAlihealthDrugKytSinglerelationResponse rsp = client.execute(req);
            System.out.println(rsp.getBody());

        } catch (ApiException e) {

            System.out.println(e.getSubErrMsg());
        }
    }
}
